package dev.loong.boot3.vo;

import lombok.Data;

@Data
public class ResultVO <T>{
    // 成功标识
    private Boolean success = Boolean.FALSE;
    // 消息
    private String message;
    // 数据
    private T data;
    public ResultVO(){}
    public ResultVO(Boolean success, String message) {
        this.success = success;
        this.message = message;
    }
    public ResultVO(Boolean success, String message, T data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }
}
